package com.yonyougov.devops.cruxcisupport.rancher;


import com.yonyougov.devops.cruxcisupport.rancher.vo.CreateClusterRequestVo;
import com.yonyougov.devops.cruxcisupport.rancher.vo.CreatePodRequestVo;
import com.yonyougov.devops.cruxcisupport.rancher.vo.GetCmdToAddNodesRequestVo;

public interface RancherService {
    /**
     * 创建pod
     *
     * @param createPodRequestVo
     */
    boolean createPod(CreatePodRequestVo createPodRequestVo);

    /**
     * 创建集群
     *
     * @param request
     * @return
     */
    boolean createCluster(CreateClusterRequestVo request);

    /**
     * 获取向集群中添加节点的命令
     *
     * @param request
     * @return
     */
    String getCmdToAddNodes(GetCmdToAddNodesRequestVo request);

    /**
     * 根据环境名称部署该环境下全部应用
     *
     * @param envName
     * @return
     */
    boolean deployAllPodByEnvName(String envName);
}
